package com.audaque.springboot.foshanupload.web.webdemo.model.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zgb
 * @desc ...
 * @date 2023-03-09 15:45:22
 */

@Schema(description = "日期序列化")
@Data

@NoArgsConstructor
@AllArgsConstructor

public class Covert11Dto implements Serializable {
    private static final long serialVersionUID = -1242493306307174690L;

    @Schema(description = "id")
    //解决：long类型序列化时精度丢失
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "date")
    private Date date;



}
